<?php include 'header.php'; ?>

<h1> Circle Point Hotels </h1>
<h2 Other Locations  </h2>



 
 <meta name="viewport" content="initial-scale=1.0, user-scalable=no" />
    <meta http-equiv="content-type" content="text/html; charset=UTF-8"/>
    <title>Circle Point Hotel Locations</title>
    <script type="text/javascript" src="https://maps.googleapis.com/maps/api/js?key=AIzaSyApTyY0pvW4rvQGgpiSPT83-1nhQ4pgOUA &sensor=false"></script>
    <script type="text/javascript">
    

    var customIcons = {
      restaurant: {
        icon: 'http://labs.google.com/ridefinder/images/mm_20_blue.png',
        shadow: 'http://labs.google.com/ridefinder/images/mm_20_shadow.png'
      },
      bar: {
        icon: 'http://labs.google.com/ridefinder/images/mm_20_red.png',
        shadow: 'http://labs.google.com/ridefinder/images/mm_20_shadow.png'
      }
    };
//Map Centered on Atlanta 
    function load() {
      var map = new google.maps.Map(document.getElementById("map"), {
        center: new google.maps.LatLng(33.749464, -84.395714),
        zoom: 10,
         mapTypeId: google.maps.MapTypeId.HYBRID
		 });
// Marietta Hilton
var marker = new google.maps.Marker({
  position: new google.maps.LatLng(33.9342689,	-84.5588291), 
  map: map,
   title: 'Hilton Marrietta',
   clickable: true
});

 // Hilton Airport
var marker = new google.maps.Marker({
  position: new google.maps.LatLng(33.6589683,	-84.4257941), 
  map: map,
   title: 'Hitlon Airport',
});
// Perimiter
var marker = new google.maps.Marker({
  position: new google.maps.LatLng(33.9212173,-84.3514669), 
  map: map,
   title: 'Hitlon Perimiter',
});
// Double Tree
var marker = new google.maps.Marker({
  position: new google.maps.LatLng( 33.663696, -84.4271629), 
  map: map,
   title: 'Hitlon Double Tree',
});
// Garden Inn
var marker = new google.maps.Marker({
  position: new google.maps.LatLng( 33.7489954, -84.3879824), 
  map:map,
   title: 'Hitlon Garden Inn',
   
});
markers.push(marker);
infowindows.push(infowindow);

google.maps.event.addListener(markers[1], 'click', function(){

if (currentPopup != 0) {currentPopup.close();}

infowindows[1].open(map,markers[1]);
currentPopup = infowindows[1];
});
var contentString="<div><a target='_top' href='index.php?rep_rubrique=PFS_Feuille&choix=18651'>Momo</a><br/>Grenoble<br/>France</div>";

var infowindow = new google.maps.InfoWindow({
    content: contentString
});




      var infoWindow = new google.maps.InfoWindow;

     
      downloadUrl("AtlantaMaps.php", function(data) {
        var xml = data.responseXML;
        var markers = xml.documentElement.getElementsByTagName("marker");
        for (var i = 0; i < markers.length; i++) {
		  var ID = markers[i].getValue("hotelId");
          var name = markers[i].getValue("hotelName");
          var address = markers[i].getValue("addressID");
          var Url = markers[i].getValue("hotelURL");
		  var Country = markers[i].getValue("countryCode");
		  var star = markers[i].getValue("starRatingId");
          var point = new google.maps.LatLng(
              parseFloat(markers[i].getValues("lat")),
              parseFloat(markers[i].getValues("lng")));
          var html = "<b>" + name + "</b> <br/>" + address;
          var icon = customIcons[type] || {};
          var markers = new google.maps.Marker({
            map: map,
            position: point,
            icon: icon.icon,
            shadow: icon.shadow
          });
          bindInfoWindow(marker, map, infoWindow, html);
        }
      });
    }

    function bindInfoWindow(marker, map, infoWindow, html) {
      google.maps.event.addListener(marker, 'click', function() {
        infoWindow.setContent(html);
        infoWindow.open(map, marker);
      });
    }

    function downloadUrl(url, callback) {
      var request = window.ActiveXObject ?
          new ActiveXObject('Microsoft.XMLHTTP') :
          new XMLHttpRequest;

      request.onreadystatechange = function() {
        if (request.readyState == 4) {
          request.onreadystatechange = doNothing;
          callback(request, request.status);
        }
      };

      request.open('GET', db/AtlantaMaps.php, true);
      request.send(null);
    }

    function doNothing() {}

    //]]>

  </script>

  </head>

  <body onload="load()">
    <div id="map" style="width: 800px; height: 600px"></div>
  </body>
<?php include 'header.php'; ?>